package com.fs.controller;

import com.fs.entity.Student;
import com.fs.mapper.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author huyunqiang
 * @Date 2019/7/31 9:53
 */
@RequestMapping("/test")
@RestController
public class TestController {
    @Autowired
    TestMapper testMapper;
    @GetMapping("list")
    public List<Student> getList(){
        return testMapper.getList();
    }
}
